package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 会员管理对象 sys_member
 * 
 * @author ruoyi
 * @date 2025-10-08
 */
public class SysMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    @NotBlank (message = "姓名不能为空")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    @NotBlank (message = "手机号不能为空")
    private String mobile;

    /** 微信号 */
    @Excel(name = "微信号")
    @NotBlank (message = "微信号不能为空")
    private String wechatId;

    /** 昵称 */
    @Excel(name = "昵称")
    @NotBlank (message = "昵称不能为空")
    private String nickName;

    /** openid */
    @Excel(name = "openid")
    private String openId;

    /** 头像 */
    private String avatar;

    /** 等级 */
    private Long level;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 一级id */
    @Excel(name = "一级id")
    private Long level1Id;

    /** 二级id */
    @Excel(name = "二级id")
    private Long level2Id;

    /** 学生标志 */
    @Excel(name = "学生标志")
    private Integer studentFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }

    public void setWechatId(String wechatId) 
    {
        this.wechatId = wechatId;
    }

    public String getWechatId() 
    {
        return wechatId;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setLevel1Id(Long level1Id) 
    {
        this.level1Id = level1Id;
    }

    public Long getLevel1Id() 
    {
        return level1Id;
    }

    public void setLevel2Id(Long level2Id) 
    {
        this.level2Id = level2Id;
    }

    public Long getLevel2Id() 
    {
        return level2Id;
    }

    public Integer getStudentFlag() {
        return studentFlag;
    }

    public void setStudentFlag(Integer studentFlag) {
        this.studentFlag = studentFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("wechatId", getWechatId())
            .append("nickName", getNickName())
            .append("openId", getOpenId())
            .append("avatar", getAvatar())
            .append("level", getLevel())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("status", getStatus())
            .append("level1Id", getLevel1Id())
            .append("level2Id", getLevel2Id())
            .append("studentFlag", getStudentFlag())
            .toString();
    }
}
